package cn.stylefeng.guns.sys.modular.system.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.sys.modular.system.entity.BtyElm;
import cn.stylefeng.guns.sys.modular.system.model.params.BtyElmParam;
import cn.stylefeng.guns.sys.modular.system.model.result.BtyElmResult;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  饿了么账单服务类
 * </p>
 * @author liuy
 * @since 2021-08-30
 */
public interface BtyElmService extends IService<BtyElm> {

    /**
     * 新增
     *
     * @author liuy
     * @Date 2021-08-30
     */
    void add(BtyElmParam param);

    /**
     * 删除
     *
     * @author liuy
     * @Date 2021-08-30
     */
    void delete(BtyElmParam param);

    /**
     * 更新
     *
     * @author liuy
     * @Date 2021-08-30
     */
    void update(BtyElmParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author liuy
     * @Date 2021-08-30
     */
    BtyElmResult findBySpec(BtyElmParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author liuy
     * @Date 2021-08-30
     */
    List<BtyElmResult> findListBySpec(BtyElmParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author liuy
     * @Date 2021-08-30
     */
     LayuiPageInfo findPageBySpec(BtyElmParam param);

    Boolean batchImport(String fileName, MultipartFile file) throws Exception;

    BigDecimal zje();

    boolean insertElm(List<BtyElm> list);

    List<BtyElmResult> customList(BtyElmParam param);
}
